package com.zc.service.two.impl;

import com.zc.service.two.CashSuper;

public class CashRebate implements CashSuper {
    private double rebate = 0;

    @Override
    public double acceptCash(double cash) {
        return cash*rebate;
    }

    public CashRebate(double rebate) {
        this.rebate = rebate;
    }
}
